module.exports = {
  mode: 'universal',
  /*
  ** Headers of the page
  */
  head: {
    title: '天赋能健康产业集团',
    meta: [
      { charset: 'utf-8' },
      { name: 'viewport', content: 'width=device-width, initial-scale=1' },
      { hid: 'description', name: 'description' },
      { hid:'keywords' , name:'keywords'},
      { name: 'baidu-site-verification', content: 'code-fE3a5Jk1bT' }
    ],
    link: [
      // { rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }
    ],
    script: [
      { src: '/js/setRem.js', type: 'text/javascript', charset: 'utf-8'},
      { src: '/js/isPhone.js', type: 'text/javascript', charset: 'utf-8'}
    ]
  },
  /*
  ** Customize the progress-bar color
  */
  loading: { color: '#fff' },
  /*
  ** Global CSS
  */
  css: [
    'element-ui/lib/theme-chalk/index.css',
    '@assets/css/normalize.css',
    '@assets/css/reset.css',
    '@assets/css/animate.css',
    './assets/css/main.less'
  ],
  /*
  ** Plugins to load before mounting the App
  */
  plugins: [
    '@/plugins/element-ui'
  ],
  // server: {
  //   port: 3000,
  //   host: '0.0.0.0'
  // },
  /*
  ** Nuxt.js dev-modules
  */
  buildModules: [
  ],
  /*
  ** Nuxt.js modules
  */
  modules: [
    // Doc: https://axios.nuxtjs.org/usage
    '@nuxtjs/axios',
  ],
  /*
  ** Axios module configuration
  ** See https://axios.nuxtjs.org/options
  */
  axios: {
  },
  /**
   * 去除meta标签中的data-n-head
   */
  // hooks: {
  //   'render:route': (url, result) => {
  //     this.$ = cheerio.load( result.html, {decodeEntities: false})
  //     this.$(`meta`).removeAttr('data-n-head')
  //     result.html = this.$.html()
  //   }
  // },
  /*
  ** Build configuration
  */
  build: {
    transpile: [/^element-ui/],
    // postcss: [
    //   require('postcss-px2rem')({
    //     remUnit: 75
    //   })
    // ],
    /*
    ** You can extend webpack config here
    */
    extend (config, ctx) {
    }
  }
}
